package com.base.service.impl;

import com.base.mapper.voipmapper.ReplacementBankCardMapper;
import com.base.po.replacement.ReplacementBankCard;
import com.base.po.replacement.ReplacementBankCardExample;
import com.base.service.ReplacementBankCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("replacementBankCardService")
public class ReplacementBankCardServiceImpl implements ReplacementBankCardService {
	
	@Autowired
	private ReplacementBankCardMapper replacementBankCardMapper;


	@Override
	public int countByExample(ReplacementBankCardExample example) {
		return replacementBankCardMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ReplacementBankCardExample example) {
		return replacementBankCardMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return replacementBankCardMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ReplacementBankCard record) {
		return replacementBankCardMapper.insert(record);
	}

	@Override
	public int insertSelective(ReplacementBankCard record) {
		return replacementBankCardMapper.insertSelective(record);
	}

	@Override
	public List<ReplacementBankCard> selectByExample(ReplacementBankCardExample example) {
		return replacementBankCardMapper.selectByExample(example);
	}

	@Override
	public List<ReplacementBankCard> selectAllCard(String userid) {
		return replacementBankCardMapper.selectAllCard(userid);
	}

	@Override
	public List<ReplacementBankCard> selectByType(String userid, Integer type) {
		return replacementBankCardMapper.selectByType(userid, type);
	}

	@Override
	public ReplacementBankCard selectByPrimaryKey(String id) {
		return replacementBankCardMapper.selectByPrimaryKey(id);
	}

	@Override
	public ReplacementBankCard selectByCardNo(String userid, String cardno) {
		return replacementBankCardMapper.selectByCardNo(userid, cardno);
	}

	@Override
	public ReplacementBankCard selectByConfigNo(String configno) {
		return replacementBankCardMapper.selectByConfigNo(configno);
	}

	@Override
	public int updateByExampleSelective(ReplacementBankCard record, ReplacementBankCardExample example) {
		return replacementBankCardMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ReplacementBankCard record, ReplacementBankCardExample example) {
		return replacementBankCardMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ReplacementBankCard record) {
		return replacementBankCardMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ReplacementBankCard record) {
		return replacementBankCardMapper.updateByPrimaryKey(record);
	}
}
